package com.java.service.impl;

import com.java.dao.BaseAdminDao;
import com.java.dao.impl.AdminDaoMysql;
import com.java.service.AdminService;

import java.util.Date;

/**
 * @ClassName AdminServiceImpl
 * @Description AdminService实现类
 * @Author 0715-YuHao
 * @Date 2020/9/8 13:36
 */
public class AdminServiceImpl implements AdminService {

    private static BaseAdminDao dao = new AdminDaoMysql();

    @Override
    public void updateLoginTime(String username, Date date, String ip) {
        dao.updateLoginTime(username, date, ip);
    }

    @Override
    public boolean login(String username, String password) {
        return dao.login(username, password);
    }
}
